package com.mb.ext.web.util;

import org.apache.commons.codec.digest.DigestUtils;

/**
 * @Description
 * @Author 孙浩
 * @Version V1.0.0
 * @Date 2020/12/22 0022
 */
public class Codec {
  public static String uuid() {
    return java.util.UUID.randomUUID().toString().replace("-", "");
  }

  public static String md5(String data) {
    return DigestUtils.md5Hex(data);
  }
}
